//
// Created by Administrator on 2021/11/4.
//

#ifndef MRENDER_CONEBUFFERGEOMETRY_H
#define MRENDER_CONEBUFFERGEOMETRY_H

#include "../core/BufferGeometry.h"

/**
 * 锥体
 */
class ConeBufferGeometry : public BufferGeometry{
private:
    /**
     * 圆半径
     */
    float radius;
    /**
     * 高
     */
    float height;
    /**
     * 纵向分段
     */
    int heightSegments;
    /**
     * 横向分段
     */
    int widthSegments;

public:
    void onInit() override;
    void getUI() override;
public:
    ConeBufferGeometry(const float radius = 0.5f, const float height = 1.0f, const int heightSegments = 1, const int widthSegments = 10);
};


#endif //MRENDER_CONEBUFFERGEOMETRY_H
